<?php
require_once '../database/config.php';
require_once 'check.php';
?>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Layui</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" href="plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="css/global.css" media="all">
	</head>

	<body>
		<div style="margin: 15px;">
			<fieldset class="layui-elem-field site-demo-button">
				<legend>服务器环境信息</legend>
                <div class="layui-field-box">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>软件版本</legend>
                        <div class="layui-field-box">
                            <p>在线考试系统(OnLineExam System) 1.0.1</p>
                        </div>
                    </fieldset>

                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>运行软件</legend>
                        <div class="layui-field-box">
                            <p>PHP版本 <?php echo "PHP" . PHP_VERSION; ?></p>
                            <p>MYSQL版本
                                <?php echo $_SESSION['MySQL_VERSION'];?>
                            </p>
                        </div>
                    </fieldset>

                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>服务器信息</legend>
                        <div class="layui-field-box">
                            <p>服务器名称 <?php echo $_SERVER['SERVER_NAME']; ?></p>
                            <p>服务器IP <?php echo $_SERVER["HTTP_HOST"]; ?></p>
                            <p>服务器端口 <?php echo $_SERVER["SERVER_PORT"]; ?></p>
                            <p>服务器日期时间 <?php echo $showtime = date("Y-m-d H:i:s"); ?></p>
                            <p>服务器操作系统  <?php echo PHP_OS; ?></p>
                        </div>
                    </fieldset>

                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>站点物理路径</legend>
                        <div class="layui-field-box">
                            <?php echo $_SERVER["DOCUMENT_ROOT"]; ?>
                        </div>
                    </fieldset>
                </div>
			</fieldset>
	</body>
</html>